import request from '@/utils/request'

/* 会员登录 */
export function login(data) {
    return request({
        url: '/member/login',
        method: 'post',
        data
    })
}

/* 会员邮箱验证码登录 */
export function loginByEmail(data) {
    return request({
        url: '/member/loginByEmail',
        method: 'post',
        data
    })
}

/* 退出登录 */
export function logout() {
    return request({
        url: '/member/logout',
        method: 'delete',
    })
}
